﻿@using TaskManager.Web.Extensions
@model TaskManager.Web.ViewModels.Account.RegisterModel

@{
    ViewBag.Title = "Create a New Account";
}

<p>
    Use the form below to create a new account. 
</p>
<p>
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummaryEx(true)
    <div>
        <fieldset>
            @Html.NameAndTextBoxFor("Name", m => m.UserName, new { @class = "large" })
            @Html.NameAndTextBoxFor("Email address", m => m.Email, new { @class = "large" })
            @Html.NameAndPasswordFor("Password", m => m.Password, new { @class = "large" })
            @Html.NameAndPasswordFor("Confirm password", m => m.ConfirmPassword, new { @class = "large" })
            <p>
                <input type="submit" class="btn form-action-btn" value="Register" />
            </p>
        </fieldset>
    </div>
}
